package com.lollipop.synthential.basetraining;

/**
 * @Author: J.K
 * @Date: 2020-10-15 11:00
 * @Description:
 */
public class Derived extends Base {
    /**
     * 定义一个名为i的实例变量
     */
    protected int i = 22;

    public Derived() {
        i = 222;
    }

    @Override
    public void display() {
        System.out.println(i);
    }
}
